]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Don't put non-Shell windows in Ctrl+Alt+Tab if they wouldn't be visible
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 7 May 2013 18:25:06 +0000 (19:25 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 9 May 2013 18:31:28 +0000 (19:31 +0100)
Metacity's Ctrl+Alt+Tab would include X11 windows
with hints like GDK_WINDOW_TYPE_HINT_DOCK and
GDK_WINDOW_TYPE_HINT_DESKTOP (there are more conditions, but that's a
good start). If we're in normal mode, those are visible and it's OK
to display those in the Ctrl+Alt+Tab order, but if we're in the lock
screen or the unlock dialog, they're not visible and it doesn't make
sense to focus them.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=699862
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Florian Müllner <fmuellner@gnome.org>
js/ui/ctrlAltTab.js

index 6fbd24ebd3343f68da510487f684eeac5483696b..dbb1fe0380bd95093c53c7dd7db1a551edd82c68 100644 (file)
@@ -89,7 +89,7 @@ const CtrlAltTabManager = new Lang.Class({
         let items = this._items.filter(function (item) { return item.proxy.mapped; });
 
         // And add the windows metacity would show in its Ctrl-Alt-Tab list
-        if (!Main.overview.visible) {
+        if (Main.sessionMode.hasWindows && !Main.overview.visible) {
             let screen = global.screen;
             let display = screen.get_display();
             let windows = display.get_tab_list(Meta.TabList.DOCKS, screen, screen.get_active_workspace ());